/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.pojo.subgroup;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author asantos
 */
@XmlRootElement( )
@XmlAccessorType(XmlAccessType.FIELD)
public class Subgroup implements Serializable{
    
    private static final long serialVersionUID = 16742;
    
    private int id = -1;    
    private int id_group = -1;
    private int id_owner = -1;
    private String alias = null;
    private String desc = null;
    private String id_logo = null;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId_group() {
        return id_group;
    }

    public void setId_group(int id_group) {
        this.id_group = id_group;
    }

    public String getId_logo() {
        return id_logo;
    }

    public void setId_logo(String id_logo) {
        this.id_logo = id_logo;
    }

    public int getId_owner() {
        return id_owner;
    }

    public void setId_owner(int id_owner) {
        this.id_owner = id_owner;
    }

    @Override
    public String toString() {
        return "Subgroup{" + "id=" + id + ", id_group=" + id_group + ", id_owner=" + id_owner + ", alias=" + alias + ", desc=" + desc + ", id_logo=" + id_logo + '}';
    }
    
    
    
    public boolean isValid(){
        if(id_group !=-1 && id_owner !=-1 && alias!= null)
            return true;
        
        return false;
    }
    
    
}
